class MessageMailer < ActionMailer::Base
	
	# to_addrs is an array of strings of email addresses to send to, from_user is a User object
	# subject_line is a string that is the subject of the email
	def send(to_addrs, from_user, subject_line, message)
		subject    subject_line
		recipients to_addrs
		from       from_user.email
		sent_on    Time.now
		reply_to   from_user.email
		
		body       :message => message
	end
	
	def forgotten(to_user, to_contact, to_person)
		subject    'Whiteboard login id and password'
		recipients to_contact.email
		from       'byuwhiteboard@gmail.com'
		sent_on     Time.now
		reply_to   'byuwhiteboard@gmail.com'
		
		body       :user => to_user, :person => to_person
	end
end
